//
//  XMDynamicTableViewCell.h
//  XunMi
//
//  Created by MacBook on 2024/3/6.
//  Copyright © 2024 TieZhu. All rights reserved.
//

#import "XMTableViewCell.h"
@class XMDynamicModel, XMDynamicTableViewCell;
NS_ASSUME_NONNULL_BEGIN

@protocol XMDynamicTableViewCellDelegate <NSObject>
@optional
- (void)handelUserDetail:(XMDynamicModel *)model;

- (void)handelfFollow:(XMDynamicModel *)model
         followButton:(UIButton *)followButton
            indexPath:(NSIndexPath *)indexPath;

- (void)handelDelete:(XMDynamicModel *)model
         shareButton:(UIButton *)shareButton
           indexPath:(NSIndexPath *)indexPath;

- (void)handelReport:(XMDynamicModel *)model
         shareButton:(UIButton *)shareButton
           indexPath:(NSIndexPath *)indexPath;

- (void)handelPraise:(XMDynamicModel *)model 
        praiseButton:(UIButton *)praiseButton
           indexPath:(NSIndexPath *)indexPath;

- (void)handelMore:(XMDynamicModel *)model cell:(XMDynamicTableViewCell *)cell;

@end


@interface XMDynamicTableViewCell : XMTableViewCell

@property (nonatomic, strong) XMDynamicModel *model;

@property (nonatomic, strong) NSIndexPath *indexPath;

@property (nonatomic, weak) id<XMDynamicTableViewCellDelegate> delegate;

@end

NS_ASSUME_NONNULL_END
